package com.ruoyi.purchase.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.purchase.mapper.WManagementMapper;
import com.ruoyi.purchase.domain.WManagement;
import com.ruoyi.purchase.service.IWManagementService;

/**
 * 仓库管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-16
 */
@Service
public class WManagementServiceImpl implements IWManagementService 
{
    @Autowired
    private WManagementMapper wManagementMapper;

    /**
     * 查询仓库管理
     * 
     * @param id 仓库管理主键
     * @return 仓库管理
     */
    @Override
    public WManagement selectWManagementById(Long id)
    {
        return wManagementMapper.selectWManagementById(id);
    }

    /**
     * 查询仓库管理列表
     * 
     * @param wManagement 仓库管理
     * @return 仓库管理
     */
    @Override
    public List<WManagement> selectWManagementList(WManagement wManagement)
    {
        return wManagementMapper.selectWManagementList(wManagement);
    }

    /**
     * 新增仓库管理
     * 
     * @param wManagement 仓库管理
     * @return 结果
     */
    @Override
    public int insertWManagement(WManagement wManagement)
    {
        return wManagementMapper.insertWManagement(wManagement);
    }

    /**
     * 修改仓库管理
     * 
     * @param wManagement 仓库管理
     * @return 结果
     */
    @Override
    public int updateWManagement(WManagement wManagement)
    {
        return wManagementMapper.updateWManagement(wManagement);
    }

    /**
     * 批量删除仓库管理
     * 
     * @param ids 需要删除的仓库管理主键
     * @return 结果
     */
    @Override
    public int deleteWManagementByIds(Long[] ids)
    {
        return wManagementMapper.deleteWManagementByIds(ids);
    }

    /**
     * 删除仓库管理信息
     * 
     * @param id 仓库管理主键
     * @return 结果
     */
    @Override
    public int deleteWManagementById(Long id)
    {
        return wManagementMapper.deleteWManagementById(id);
    }
}
